package com.jt.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.jt.mapper.ItemParamMapper;
import com.jt.pojo.ItemParam;
import com.jt.service.ItemParamService;
import com.jt.vo.EasyUITable;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class ItemParamServiceImpl implements ItemParamService {
    @Autowired
    ItemParamMapper itemParamMapper;

    @Override
    public EasyUITable<ItemParam> getItemParamList(Integer page, Integer rows) {
        Page<ItemParam> paramPage=new Page<>(page,rows);
        QueryWrapper<ItemParam> queryWrapper=new QueryWrapper<>();
        paramPage=itemParamMapper.selectPage(paramPage,null);
        return new EasyUITable<ItemParam>(paramPage.getTotal(),paramPage.getRecords());
    }
}
